package classByGZMZ.day02;

/**
 * @Author zsj
 * @Version 1.0
 * @Date 2024/3/5 16:00
 * @Description
 */
public class Test {
    public static void main(String[] args) {

        Fighter fighter = new Fighter("军人1号", 23, "步兵", "排长", 5);
        Fighter fighter2 = new Fighter("军人2号", 23, "海军", "连长", 7);
        Fighter fighter3 = new Fighter("军人3号", 23, "空军", "营长", 15);

        Doctor doctor = new Doctor("蒙多医生", 28, "男", "外科室", "外科医生");
        Person person = new Person("普通人",18);
        fighter.job();
        doctor.job();
        person.job();
    }
}
